package com.parfinex.sims.app;

import java.util.Iterator;
import java.util.LinkedList;

/**
 * Description:
 *
 * @author lijh
 * @version 1.0
 * @date 2021-11-17 10:58
 */
public class LinkedListTest {
    public static void main(String[] args) {
        var staff = new LinkedList<String>();
        boolean is_success;
        System.out.println(staff.isEmpty());
        is_success = staff.add("Amy");
        System.out.println(is_success);
        staff.add("Bob");
        staff.add("Carl");
        System.out.println(staff.isEmpty());
        System.out.println(staff.size());
        System.out.println(staff.hashCode());
        System.out.println(staff);
        Iterator<String> iter = staff.iterator();
        String first = iter.next();
//        String seconde = iter.next();
        iter.remove();
        System.out.println(staff);
    }
}
